package xyz.spoplar.learnservice;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;

/**
 * Created by spoplar on 17-8-15.
 */
public class MyBindService extends Service {

    class MyBinder extends Binder{
        public MyBindService getService(){
            return MyBindService.this;
        }
    }
    @Override
    public IBinder onBind(Intent intent) {
        return new MyBinder();
    }

    @Override
    public void onCreate() {
        Log.i("info","onCreate");
    }

    @Override
    public boolean onUnbind(Intent intent) {
        Log.i("info","onUnbind");
        return super.onUnbind(intent);
    }

    @Override
    public void onDestroy() {
        Log.i("info","onDestroy");
        super.onDestroy();
    }


    public void play(){
        Log.i("info","play");

    }
    public void pause(){
        Log.i("info","pause");

    }
    public void prev(){
        Log.i("info","prev");

    }
    public void next(){
        Log.i("info","next");

    }

}
